//
//  HMConst.swift
//  Weibo
//
//  Created by 米易雅克 on 16/4/13.
//  Copyright © 2016年 米易雅克. All rights reserved.
//

import UIKit

/// 默认参数 file: String = __FILE__,如果不传入参数会使用 = 后面的作为参数

func HMPrint(items: Any,file: String = #file,line: Int = #line ,function: String = #function ) {

    #if DEBUG

    print((file as NSString).lastPathComponent + ",[\(line)行],方法名:" + function + "输出:\(items)")
    #endif
}
//tabbar个数
let HMTabBarButtonCount = 5
//全局背景色
let GlobalBgColor = UIColor.whiteColor()

// MARK: 登陆授权
///加载授权界面的url
let OauthURL = "https://api.weibo.com/oauth2/authorize"

//请求应用时分配的appKey
let client_id = "2359872781"

//授权回调地址
let redirect_uri = "http://www.baidu.com/"

/// 申请应用时分配的AppSecret
let client_secret = "4f261975908f987392043f17daab92be"

/// 请求的类型
let grant_type = "authorization_code"

/// accessToken请求地址
let accessTokenURLString = "https://api.weibo.com/oauth2/access_token"

//归档解档路径
let filePath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true).last!.stringByAppendingString("/account.plist")

//新特性

let numberOfNewFeatureItem = 4
//新特性字体大小
let HMNewFeatureLabelFontSize: CGFloat = 18
//欢迎界面字体大小
let HMWelcomeLabelFontSize : CGFloat = 14
//欢迎文字显示延迟
let HMDefaultAnimationDur:NSTimeInterval = 0.25


//主页cell

//名字文字大小
let HMStatusNameFontSize:CGFloat = 14

//时间文字大小
let HMStatusTimeFontSize: CGFloat = 11

//微博正文文字大小
let HMStatusContentFontSize: CGFloat = 15

//微博cell内控件内间距
let HMStatusCellMargin: CGFloat = 8

//微博头像大小
let HMStatusIconViewWH: CGFloat = 35

//刷新微博数量显示label高度
let TipLabelHeight: CGFloat = 44

        